<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Database\Eloquent\Model;

class User extends Authenticatable
{
    //
    use Notifiable;
    protected $guarded=[];

   public function post(){

   			return $this->hasMany('App\Post')->orderBy('created_at','desc');
   }
     public function starts(){

   			return $this->hasMany('App\Fan','fan_id');
   }
   public function Fans(){

   			return $this->hasMany('App\Fan','start_id');
   }



}
